Provide relevant nativeTest and corresponding GraalVM Reachability Metadata for MySQL and Postgres Module #29357
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #29052.
Changes proposed in this pull request:
com.mysql:mysql-connector-j:8.0.31
temporarily .org.testcontainers:mysql
will report an error asmysqld failed while attempting to check config
in GraalVM Native Image testcontainers/testcontainers-java#7954 , mysql cannot use the module of testcontainers-java.@EnabledInNativeImage
annotation to only execute when the Maven Profile ofnativeTestInShardingSphere
orgenerateMetadata
is activated. Related comments can still be removed manually to perform unit testing manually.com.zaxxer:HikariCP:4.0.3
.pattern
inresource-config.json
is removing support for regexp, and support for "glob patterns" has not yet been added . A similar weird issue resulted in us needing to manually list all files on the classpath by.*schema/.+\.yaml$
and.*sql/.+\.xml$
. This avoids manually writing patterns like\Qschema/mysql/information_schema/character_sets.yaml\E
and\Qsql/MySQL.xml\E
.resource-config.json
oracle/graal#7487.*sql/.+\.xml$
and\Qsql\E
?.*sql/.+\.xml$
matches the two filessql/H2.xml
andsql/MySQL.xml
.\Qsql\E
only matchessql
folders.Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e
.